<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Action
 *
 * @author ananda
 */
abstract class Action extends Kernel
{
    public $self_name = 'Action';

    public $controller;
    public $params;

    abstract public function main();

    public function callAction($controller, $action)
    {
        $this->controller->child = $this->controller->app->createController($controller, $this->controller);
        $action = $this->controller->app->createAction($this->controller->child, $action);
        return $action;
    }
}
